Control Method And Calculation Device

ABSTRACT

A control method includes an input step for inputting information concerning a setting angle for a robot arm of a robot, the robot including the robot arm including an arm and a driving section including a servomotor that drives the arm, a calculating step for calculating, based on a first servo parameter corresponding to setting at a first setting angle for the robot arm and a second servo parameter corresponding to setting at a second setting angle different from the first setting angle for the robot arm, a third servo parameter corresponding to the setting angle for the robot arm.

The present application is based on, and claims priority from JPApplication Serial Number 2019-198391, filed Oct. 31, 2019, thedisclosure of which is hereby incorporated by reference herein in itsentirety.

BACKGROUND 1. Technical Field

The present disclosure relates to a control method and a calculationdevice.

2. Related Art

In recent years, automation of work manually performed in factories hasbeen accelerated by various robots and peripheral devices of the robotsbecause of a hike in personnel expenses and labor shortage. For example,JP-A-2017-74631 (Patent Literature 1) discloses a production systemincluding a workbench on which a work target object is disposed and arobot provided on a side of the workbench.

The robot described in Patent Literature 1 is disposed on a truck. Arobot arm performs work for assembling and machining the work targetobject from above the truck.

For example, depending on the height of the truck or the height of theworkbench, it could occur that the robot arm cannot reach the worktarget object on the workbench. In order to solve such a problem, it isconceivable to set the robot in an inclined state.

However, in the past, servo parameters are set assuming that the robotis set on a horizontal plane and used. Therefore, the servo parametersare not optimum values in a state in which the robot is inclined. As aresult, driving performance of the robot arm is deteriorated.

SUMMARY

A control method according to an application example includes: an inputstep for inputting information concerning a setting angle for a robotarm of a robot, the robot including the robot arm including an arm and adriving section including a servomotor that drives the arm; and acalculating step for calculating, based on a first servo parametercorresponding to setting at a first setting angle for the robot arm anda second servo parameter corresponding to setting at a second settingangle different from the first setting angle for the robot arm, a thirdservo parameter corresponding to the setting angle for the robot arm.

A calculation device according to an application example includes: aninput section configured to input information concerning a setting anglefor a robot arm of a robot, the robot including the robot arm includingan arm and a driving section including a servomotor that drives the arm;and a calculating section configured to calculate, based on a firstservo parameter corresponding to setting at a first setting angle forthe robot arm and a second servo parameter corresponding to setting at asecond setting angle different from the first setting angle for therobot arm, a third servo parameter corresponding to the setting anglefor the robot arm.

A calculation device according to an application example includes: aninput section configured to input information concerning a setting anglefor a robot arm of a robot, the robot including the robot arm includingan arm, a driving section including a servomotor that drives the arm,and a force detecting section configured to detect force applied to therobot arm; and a calculating section configured to calculate, accordingto an input result of the input section, at least one of a servoparameter used in driving the servomotor and a force detection parameterused for correction of a detection value of the force detecting section.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 is a side view showing a robot system including a calculationdevice according to a first embodiment of the present disclosure.

FIG. 2 is a block diagram of the robot system shown in FIG. 1.

FIG. 3 is a longitudinal sectional view of a force detecting sectionshown in FIG. 1.

FIG. 4 is an A-A line sectional view in FIG. 3.

FIG. 5 is a control block diagram showing main parts of a robot and arobot control device shown in FIG. 1.

FIG. 6 is a side view showing a robot main body set at a first settingangle.

FIG. 7 is a side view showing the robot main body set at a secondsetting angle.

FIG. 8 is a partially enlarged view of a display screen of an inputdevice shown in FIG. 1.

FIG. 9 is a flowchart for explaining a control operation performed by acalculation device shown in FIG. 1.

FIG. 10 is a diagram showing a display screen of an input device of acalculation device according to a second embodiment of the presentdisclosure.

FIG. 11 is a flowchart for explaining a control operation performed bythe calculation device according to the second embodiment of the presentdisclosure.

DESCRIPTION OF EXEMPLARY EMBODIMENTS

Control methods and calculation devices according to preferredembodiments of the present disclosure are explained in detail below.

First Embodiment

FIG. 1 is a side view showing a robot system including a calculationdevice according to a first embodiment of the present disclosure. FIG. 2is a block diagram of the robot system shown in FIG. 1. FIG. 3 is alongitudinal sectional view of a force detecting section shown inFIG. 1. FIG. 4 is an A-A line sectional view in FIG. 3. FIG. 5 is acontrol block diagram showing main parts of a robot and a robot controldevice shown in FIG. 1. FIG. 6 is a side view showing a robot main bodyset at a first setting angle. FIG. 7 is a side view showing the robotmain body set at a second setting angle. FIG. 8 is a partially enlargedview of a display screen of an input device shown in FIG. 1. FIG. 9 is aflowchart for explaining a control operation performed by a calculationdevice shown in FIG. 1.

In FIGS. 1, 6, and 7, for convenience of explanation, an x axis, a yaxis, and a z axis are illustrated as three axes orthogonal to oneanother. In the following explanation, a direction parallel to the xaxis is referred to as “x-axis direction” as well, a direction parallelto the y axis is referred to as “y-axis direction” as well, and adirection parallel to the z axis is referred to as “z-axis direction” aswell.

In the following explanation, a distal end side of illustrated arrows isreferred to as “+ (plus)” or “positive” and a proximal end side of thearrows is referred to as “− (minus)” or “negative”. For convenience ofexplanation, a +z-axis direction, that is, an upper side is referred toas “upper” or “upward” as well and a −z-axis direction, that is, a lowerside is referred to as “lower” or “downward” as well. The z-axisdirection in FIG. 1, that is, an up-down direction is set as a “verticaldirection” and the x-axis direction and the y-axis direction, that is, aleft-right direction is set as a “horizontal direction”.

A robot system 100 shown in FIG. 1 is used in, for example, work such asholding, conveyance, assembly, and inspection of work such as anelectronic component and an electronic device.

The robot system 100 shown in FIGS. 1 and 2 is, for example, a deviceused in work such as holing, conveyance, assembly, and inspection ofwork such an electronic component and an electronic device. The robotsystem 100 includes a robot 1, a robot control device 4, a mobile body2, an instruction device 3 that instructs the robot 1 about an operationprogram, and an input device 6. The robot 1 and the instruction device 3are communicable by wire or radio. The communication of the robot 1 andthe instruction device 3 may be performed via a network such as theInternet.

As explained below, a calculation device 9 is configured by a CPU 31 andan input section 34 of the instruction device 3.

The robot 1 shown in FIG. 1 is a so-called six-axis vertical articulatedrobot and includes a base 110, a robot arm 10 coupled to the base 110, aforce detecting section 5, and an inclined member 18.

The base 110 supports the robot arm 10. The base 110 includes a housing.For example, a driving device that drives the robot arm 10 and a robotcontrol device 4 are incorporated in the inside of the housing. Therobot control device 4 may be disposed on the outer side of the base110.

The proximal end of the robot arm 10 shown in FIG. 1 is coupled to theforce detecting section 5. The robot arm 10 includes a plurality ofarms, that is, an arm 11, an arm 12, an arm 13, an arm 14, an arm 15,and an arm 16. The arms 11 to 16 are coupled in this order from theproximal end toward the distal end of the robot arm 10. The arms 11 to16 are turnable with respect to the arms adjacent thereto or the base110.

As shown in FIGS. 1 and 2, the robot 1 includes a driving section 5Athat turns the arm 11 with respect to the base 110, a driving section 5Bthat turns the arm 12 with respect to the arm 11, a driving section 5Cthat turns the arm 13 with respect to the arm 12, a driving section 5Dthat turns the arm 14 with respect to the arm 13, a driving section 5Ethat turns the arm 15 with respect to the arm 14, and a driving section5F that turns the arm 16 with respect to the arm 15. As shown in FIG. 2,the driving sections 5A to 5F include motors 510, which are servomotors,not-shown motor drivers that control driving of the motors 510, brakes520 that switch a lock state and an unlock state of the motors 510, andencoders 530 that detect rotation amounts of the motors 510. The motors510, the motor drivers, the brakes 520, and the encoders 530 arecontrolled independently from one another by the robot control device 4.

As shown in FIG. 1, an end effector 17 that holds a work target objectis attached to the distal end of the robot arm 10. In the illustratedconfiguration, the end effector 17 brings a plurality of, for example,two fingers close to each other and separates the fingers from eachother to grip the work target object. The end effector 17 is not limitedto this configuration and may be, for example, a tool such as a suctionhand, a magnetic hand, or a drill.

The inclined member 18 is provided between the base 110 and the forcedetecting section 5. The inclined member 18 includes an inclined surface181. The inclined member 18 is set on the base 110 such that theinclined surface 181 is set in a direction inclined with resect to anx-y plane. The proximal end of the robot arm 10 is fixed to the inclinedsurface 181. In other words, in the robot 1 shown in FIG. 1, theinclined surface 181 is a setting surface for a robot main body 10Aconfigured by the robot arm 10 and the force detecting section 5.

An operator may select, as appropriate, according to an environment ofuse, the inclined member 18 out of a plurality of inclined members 18having inclined angles of the inclined surfaces 181 different from oneanother and set the inclined member 18. For example, the inclined member18 may be set between the base 110 and the mobile body 2.

As shown in FIGS. 3 and 4, the force detecting section 5 is a memberincluding a first plate 51, a second plate 52, a tubular section 53disposed between the first plate 51 and the second plate 52, an element54A, an element 54B, an element 54C, and an element 54D and having anexternal shape formed in a columnar shape. The elements 54A to 54D areheld between the first plate 51 and the second plate 52. The number ofelements is not limited to four and may be three or less or may be fiveor more.

The first plate 51 and the second plate 52 are formed in a disk shapeand disposed to be separated from the +z-axis side in this order. Ashape in a plan view of the first plate 51 and the second plate 52 isnot limited to a circular shape and may be any shape.

In this embodiment, the tubular section 53 is formed in a cylindricalshape and has a function of protecting the elements 54A to 54D.

The elements 54A to 54D are disposed at equal intervals to form acircle. Consequently, force applied to the elements 54A to 54D becomesuniform as much as possible. The force can be accurately detected.

As the elements 54A to 54D, an element that is configured by apiezoelectric body such as quartz and outputs electric charges whenreceiving external force can be used. As shown in FIG. 4, the element54A is located on the −x-axis side, the element 54B is located on the+x-axis side, the element 54C is located on the −y-axis side, and theelement 54D is located on the +y-axis side.

As shown in FIG. 4, in this embodiment, the elements 54A to 54D outputelectric charges when receiving force Fz of a component in the verticaldirection and force Fu around the z-axis direction, that is, in a u-axisdirection. Information concerning the electric charges output by theelements 54A to 54D is transmitted to the robot control device 4. Therobot control device 4 converts, according to the information concerningthe electric charges, the force Fz and the force Fu into force receivedby the force detecting section 5. The robot control device 4 can convertthe force Fz and the force Fu into external force received by the robotarm 10. This is explained below.

The mobile body 2 is explained.

The mobile body 2 shown in FIG. 1 is configured by an automatictraveling system and includes a moving mechanism 20 for moving the base110. The moving mechanism 20 includes a plurality of wheels, that is, apair of front wheels 21 arranged side by side in the y-axis direction inFIG. 1, a pair of rear wheels 22 arranged side by side in the y-axisdirection in FIG. 1, and a pair of driving wheels 23 arranged side byside in the y-axis direction in FIG. 1. The pair of driving wheels 23are provided between the pair of front wheels 21 and the pair of rearwheels 22. The driving wheels 23 are coupled to a not-shown drivingsection and rotate with a driving force from the driving section andmove the base 110. In this embodiment, the pair of front wheels 21 andthe pair of rear wheels 22 are driven wheels.

The driving wheels 23 are respectively independently coupled to thedriving sections and are each configurated to be capable of regularlyrotating and reversely rotating. Accordingly, the driving wheels 23 canmove straight forward and retract. By adjusting at least one of rotatingspeed and a rotating direction of the driving wheels 23, it is possibleto perform steering, for example, change a traveling direction. In thisembodiment, the front wheels 21, the rear wheels 22, and the drivingwheels 23 are configured not to rotate around the z axis but are notlimited to this. At least one of the front wheels 21, the rear wheels22, and the driving wheels 23 may be configured to rotate around the zaxis. In this case, it is possible to perform steering by adjusting arotation amount around the z axis.

“Movement” in this specification includes not only straight forwardmovement, curving, meandering, reciprocation, and the like but alsorotation. The number of wheels of the moving mechanism 20 is notparticularly limited. The configuration of the moving mechanism 20 isnot limited to the wheel traveling type explained above and may be, forexample, a mechanism that includes a plurality of legs and walks.

The robot control device 4 is explained.

As shown in FIG. 2, the robot control device 4 has a function ofcontrolling the operation of the robot arm 10 and includes a CPU(Central Processing Unit) 41, a storing section 42, and a communicationsection 43.

The CPU 41 reads out and executes various programs and the like storedin the storing section 42. An instruction signal generated by the CPU 41is transmitted to the robot 1 via the communication section 43.Consequently, the robot arm 10 can execute predetermined work.

The storing section 42 saves various programs and the like executable bythe CPU 41. Examples of the storing section 42 include a volatile memorysuch as a RAM (Random Access Memory), a nonvolatile memory such as a ROM(Read Only Memory), and a detachable external storage device.

The communication section 43 performs transmission and reception ofsignals respectively between the communication section 43 and the robot1 and the instruction device 3 using an external interface such as awired LAN (Local Area Network) or a wireless LAN.

The CPU 41 respectively calculates, according to information concerningelectric charges output by the elements 54A to 54D shown in FIG. 4,forces received by the elements 54A to 54D. The CPU 41 calculates forcereceived by the force detecting section 5. The force received by theforce detecting section 5 includes components in the x-axis direction,the y-axis direction, and the z-axis direction. These forces Fx, Fy, andFz are calculated as explained below.

The force Fx can be calculated by multiplexing, by a force detectionparameter Mx, a value obtained by subtracting force Fub in a u directionreceived by the element 54B from force Fua in the u direction receivedby the element 54A. That is, the CPU 41 calculates Fx=(Fua−Fub)×Mx.

The force Fy can be calculated by multiplexing, by a force detectionparameter My, a value obtained by subtracting force Fud in the udirection received by the element 54D from force Fuc in the u directionreceived by the element 54C. That is, the CPU 41 calculatesFy=(Fuc−Fud)×My.

The force Fz can be calculated by multiplexing, by a force detectionparameter Mz, a difference between a value obtained by subtracting forceFzb in the z direction received by the element 54B from force Fza in thez direction received by the element 54A and a value obtained bysubtracting force Fzd in the z direction received by the element 54Dfrom force Fzc in the z direction received by the element 54C. That is,the CPU 41 calculates Fz{(Fza−Fzb)−(Fzc−Fzd)}×Mz.

The force detection parameter Mx, the force direction parameter My, andthe force detection parameter Mz are coefficients used for offsettingand reducing the influence of the gravity in force detection and arevalues instructed by the instruction device 3. This is explained below.

The robot control device 4 may be configured to control the operation ofthe mobile body 2. A control device that controls the operation of themobile body 2 may be separately provided.

Other components may be further added to the robot control device 4 inaddition to the components explained above. The various programs, data,and the like saved in the storing section 42 may be stored in thestoring section 42 in advance, may be stored in a recording medium suchas a CD-ROM and provided from the recording medium, or may be providedvia a network or the like.

A control block diagram of the robot 1 is explained.

As shown in FIG. 5, the robot 1 includes a position-feedforward controlsection 411, a position control section 412, a speed control section413, an integrator 414, a motor driver 415, an adder-subtractor 416, andan adder-subtractor 417. The position-feedforward control section 411,the position control section 412, and the speed control section 413 areincluded in the CPU 41.

A signal of a target position input from the instruction device 3explained below is input to each of the position-feedforward controlsection 411 and the adder-subtractor 416. The position-feedforwardcontrol section 411 multiplies the signal of the target position by aposition feedforward gain Kppff, which is a servo parameter, and outputsthe signal of the target position to the adder-subtractor 417.

On the other hand, in the adder-subtractor 416, a signal concerning apresent position, which is a detection result of the encoder 530, isadded to the signal of the target position input to the adder-subtractor416. The signal of the target position is output to the position controlsection 412. The position control section 412 multiplies the inputsignal by a position control gain Kpp, which is a servo parameter, andoutputs the signal to the adder-subtractor 417.

The adder-subtractor 417 adds up the signal of the target positionmultiplied by the position feedforward gain Kppff and the signal of thetarget position multiplied by the position control gain Kpp andsubtracts the signal concerning the present position integrated by theintegrator 414 from the added-up signal and inputs a signal obtained bythe subtraction to the speed control section 413.

The speed control section 413 multiplies the input signal by a speedcontrol gain Kvp, which is a servo parameter, to convert the signal intospeed information or an electric current and outputs the speedinformation or the electric current to the motor driver 415.Consequently, it is possible to drive, while taking into account thepresent position of the robot arm 10, the motor 510 to move the robotarm 10 to the target position.

The “servo parameter” in this specification includes the positionfeedforward gain Kppff, the position control gain Kpp, and the speedcontrol gain Kvp and is a general term of these gains.

The instruction device 3 is explained.

As shown in FIG. 2, the instruction device 3 has a function ofcontrolling the operation of the robot arm 10. The instruction device 3includes, as shown in FIG. 2, a CPU (Central Processing Unit) 31, astoring section 32, a communication section 33, and an input section 34.

The CPU 31 reads out and executes various programs and the like storedin the storing section 32. An instruction signal generated by the CPU 31is transmitted to the robot control device 4 via the communicationsection 33. Consequently, the robot arm 10 can execute predeterminedwork under predetermined conditions. The CPU 31 is a calculating sectionthat calculates a proper servo parameter, which is a third servoparameter, and a proper force detection parameter. The CPU 31 performs acalculating step explained below.

The storing section 32 saves various programs and the like executable bythe CPU 41. Examples of the storing section 32 include a volatile memorysuch as a RAM (Radom Access Memory), a nonvolatile memory such as a ROM(Random Access Memory), and a detachable external storage device.

The communication section 33 performs transmission and reception ofsignals between the communication section 33 and the robot controldevice 4 using an external interface such as a wired LAN (Local AreaNetwork) or a wireless LAN.

Other components may be further added to the instruction device 3 inaddition to the components explained above. The various programs, data,and the like saved in the storing section 32 may be stored in thestoring section 32 in advance, may be stored in a recording medium suchas a CD-ROM and provided from the recording medium, or may be providedvia a network or the like.

The robot control device 4 includes a terminal, that is, an input portto which an instruction from the input device 6 is input. This partfunctions as the input section 34 to which various kinds of informationare input. The input section 34 inputs the information, which is inputfrom the input device 6, to, that is, takes the information into theinstruction device 3, whereby an input step explained below isperformed.

The calculation device 9 is configured by the CPU 31 and the inputsection 34 of the instruction device 3.

The input device 6 is a device with which the operator inputsinformation and performs various settings on the instruction device 3.The input device 6 is not particularly limited. Examples of the inputdevice 6 include a tablet, a personal computer, a smartphone, and ateaching pendant. Connection of the input device 6 may be connection byradio besides connection by wire and may be connection by communicationvia a network such as the Internet.

In this embodiment, as an example, the input device 6 is a deviceincluding a display screen 60 as shown in FIG. 8. Examples of a screendisplayed on the display screen 60 include a screen including asetting-angle input section 61 and a determination button 62. Theoperator can touch or operate, with a mouse, the setting-angle inputsection 61 and the determination button 62.

The configuration of the robot system 100 is explained.

When the proximal end face of the robot arm 10 is set in an inclinedstate with respect to the horizontal direction by the inclined member 18as shown in FIG. 1, a movable range of the distal end of the endeffector 17 expands to the −z-axis side compared with when the proximalend face of the robot arm 10 is set in a parallel state in thehorizontal direction.

In general, a servo parameter in controlling the operation of the robotarm 10 is set assuming that the proximal end face of the robot arm 10 isset in the parallel state in the horizontal direction, as shown in FIG.6. Accordingly, in the state shown in FIG. 6, when the operation of therobot arm 10 is controlled using the set servo parameter, positionaccuracy and responsiveness are high and excellent performance can beexerted.

However, when an optimum, that is, proper servo parameter in the stateshown in FIG. 6 and the state shown in FIG. 7 is used for control of theoperation of the robot arm 10 in the state shown in FIG. 1, the servoparameter is not proper and performance is deteriorated. In view of suchfacts, in the present disclosure, the problem can be solved as explainedbelow. A control operation of the instruction device 3 is explainedbelow with reference to a flowchart of FIG. 9. The instruction device 3may perform steps explained below by sharing the steps with the robotcontrol device 4. However, in the following explanation, as an example,the instruction device 3 performs the steps.

First, the operator inputs, while viewing the display screen 60 of theinput device 6 shown in FIG. 8, a setting angle for the robot arm 10,that is, an angle formed by the proximal end face of the robot arm 10and the horizontal plane. The input is completed by inputting anumerical value to the setting-angle input section 61 and pressing thedetermination button 62. The operator can accurately input the settingangle by, for example, grasping an inclination angle of the inclinedsurface 181 of the inclined member 18.

When the operator presses the determination button 62, informationconcerning the setting angle is input to the instruction device 3 viathe input section 34. In step 5101, the input section 34 inputs theinformation concerning the setting angle to, that is, takes theinformation concerning the setting angle into the storing section 32.

Subsequently, in step S102, a proper servo parameter K0, which is aproper servo parameter at the input setting angle, is calculated. Inthis step, the proper servo parameter K0 is individually calculated forthe respective motors 510 of the driving sections 5A to 5F by the samecalculation method. Therefore, one motor 510 is focused and explained.

In this step, the proper servo parameter K0 is calculated based on afirst servo parameter K1 corresponding to setting at the first settingangle for the robot arm 10 shown in FIG. 6 and a second servo parameterK2 corresponding to setting at the second setting angle for the robotarm 10 shown in FIG. 7.

In this embodiment, the first setting angle shown in FIG. 6 is 0° andthe second setting angle shown in FIG. 7 is 90°. The first servoparameter K1 corresponding to the setting at the first setting angle forthe robot arm 10 is an optimum value at the first setting angle. Thisvalue is, for example, experimentally calculated in advance and storedin the storing section 32. Similarly, the second servo parameter K2corresponding to the setting at the second setting angle for the robotarm 10 is an optimum value at the second setting angle. This value is,for example, experimentally calculated in advance and stored in thestoring section 32.

In this way, at the first setting angle, an angle formed by a settingsurface on which the robot arm 10 is set and the horizontal plane is 0°and, at the second setting angle, the angle formed by the settingsurface and the horizontal plane is 90°. Consequently, it is possible toperform more accurate parameter detection as explained below.

The CPU 31 multiplies a difference between the first servo parameter K1and the second servo parameter K2 by sinθ and subtracts a value obtainedby the multiplication from the first servo parameter K1. That is, theCPU 31 calculates K0=K1−(K1−K2)×sinθ. Consequently, it is possible toaccurately calculate the proper servo parameter K0.

More specifically, as explained above, the servo parameter includes theposition feedforward gain Kppff, the position control gain Kpp, and thespeed control gain Kvp. In this embodiment, respective proper values ofthe position feedforward gain Kppff, the position control gain Kpp, andthe speed control gain Kvp are calculated.

First, the calculation of the proper value of the position feedforwardgain Kppff is explained.

When a position feedforward gain in the first servo parameter K1 isrepresented as Kppff1, a position feedforward gain in the second servoparameter K2 is represented as Kppff2, and a proper value of theposition feedforward gain Kppff is represented as Kppff0, the CPU 31calculates Kppff0=Kppff1−(Kppff1−Kppff2)×sinθ. Consequently, it ispossible to accurately calculate the proper value Kppff0 of the positionfeedforward gain Kppff according to a setting angle θ.

The calculation of the proper value of the position control gain Kpp isexplained.

When a position control gain in the first servo parameter K1 isrepresented as Kpp1, a position control gain in the second servoparameter K2 is represented as Kpp2, and a proper value of the positioncontrol gain Kpp is represented as Kpp0, the CPU 31 calculatesKpp0=Kpp1−(Kpp1−Kpp2)×sinθ. Consequently, it is possible to accuratelycalculate the proper value Kpp0 of the position control gain Kppaccording to the setting angle θ.

The calculation of the proper value of the speed control gain Kvp isexplained.

When a speed control gain in the first servo parameter K1 is representedas Kpv1, a speed control gain in the second servo parameter K2 isrepresented as Kpv2, and a proper value of a speed control gain Kpv isrepresented as Kpv0, the CPU 31 calculates Kpv0=Kpv1−(Kpv1−Kpv2)×sinθ.Consequently, it is possible to accurately calculate the proper valueKpv0 of the speed control gain Kpv according to the setting angle θ.

In this way, in this embodiment, the proper values of the positionfeedforward gain Kppff, the position control gain Kpp, and the speedcontrol gain Kvp are respectively calculated. Consequently, it ispossible to calculate an optimum servo parameter according to thesetting angle θ of the robot arm 10.

That is, the servo parameter includes the position feedforward gain, theposition control gain, and the speed control gain. In the calculatingstep, any one of the position feedforward gain, the position controlgain, and the speed control gain is calculated, in this embodiment, allthe gains are calculated. Consequently, it is possible to calculate anoptimum servo parameter according to the setting angle θ of the robotarm 10.

In this way, when the first servo parameter is represented as K1, thesecond servo parameter is represented as K2, the proper servo parameter,which is the third servo parameter, is represented as K0, and thesetting angle for the robot arm 10 is represented as θ, in thecalculating step, K0=K1−(K1−K2)×sinθ is calculated. Consequently, it ispossible to accurately calculate the proper servo parameter K accordingto the setting angle θ of the robot arm 10.

Note that, in the explanation in this embodiment, the proper values ofthe position feedforward gain Kppff, the position control gain Kpp, andthe speed control gain Kvp are respectively calculated. However, thepresent disclosure is not limited to this. The effects of the presentdisclosure can be obtained if the proper value of at least one of theposition feedforward gain Kppff, the position control gain Kpp, and thespeed control gain Kvp is calculated.

The proper values of the position feedforward gain Kppff, the positioncontrol gain Kpp, and the speed control gain Kvp are calculated for eachof the motors 510 of the driving sections 5A to 5F and stored in thestoring section 32.

When the optimum, that is, proper force detection parameter in the stateshown in FIG. 6 or the state shown in FIG. 7 is used for detection inthe state shown in FIG. 1, the force detection parameter is not properand accuracy of force detection is deteriorated.

Therefore, in this embodiment, in step S103, a proper force detectionparameter is calculated according to the setting angle θ. That is, aproper force detection parameter Mx0, which is a proper value of theforce detection parameter Mx used for calculation of the force Fx, aproper force detection parameter My0, which is a proper value of theforce detection parameter My used for calculation of the force Fy, and aproper force detection parameter Mz0, which is a proper value of theforce detection parameter Mz used for calculation of the force Fz, arerespectively calculated according to the setting angle θ.

In this step, the proper force detection parameters Mx0, My0, and Mz0are calculated based on a first force detection parameter correspondingto the setting at the first setting angle for the robot arm 10 shown inFIG. 6 and a second force detection parameter corresponding to thesetting at the second setting angle for the robot arm 10.

A first force detection parameter M1 includes a force detectionparameter Mx1 used for the calculation of the force Fx, a forcedetection parameter My1 used for the calculation of the force Fy, and aforce detection parameter Mz1 used for the calculation of the force Fz.

A second force detection parameter M2 includes a force detectionparameter Mx2 used for the calculation of the force Fx, a forcedetection parameter My2 used for the calculation of the force Fy, and aforce detection parameter Mz2 used for the calculation of the force Fz.

As explained above, the first setting angle shown in FIG. 6 is 0° andthe second setting angle shown in FIG. 7 is 90°. The force detectionparameters Mx1, My1, and Mz1 corresponding to the force detection at thefirst setting angle are optimum values at the first setting angle. Thesevalues are, for example, experimentally calculated in advance and storedin the storing section 32. Similarly, the force detection parametersMx2, My2, and Mz2 corresponding to the force detection at the secondsetting angle are optimum values at the second setting angle. Thesevalues are, for example, experimentally calculated in advance and storedin the storing section 32.

The proper force detection parameter Mx0 is calculated as explainedbelow.

The CPU 31 multiplies a difference between the force detection parameterMx1 and the force detection parameter Mx2 by sinθ and subtracts a valueobtained by the multiplication from the force detection parameter Mx1.That is, the CPU 31 calculates Mx0=Mx1−(Mx1−Mx2)×sinθ. Consequently, itis possible to accurately calculate the proper force detection parameterMx0 according to the setting angle θ. Accordingly, it is possible toaccurately perform force detection in the x-axis direction irrespectiveof the setting angle θ.

The proper force detection parameter My0 is calculated as explainedbelow.

The CPU 31 multiplies a difference between the force detection parameterMy1 and the force detection parameter My2 by sinθ and subtracts a valueobtained by the multiplication from the force detection parameter My1.That is, the CPU 31 calculates My0=My1−(My1−My2)×sinθ. Consequently, itis possible to accurately calculate the proper force detection parameterMy0 according to the setting angle θ. Accordingly, it is possible toaccurately perform force detection in the y-axis direction irrespectiveof the setting angle θ.

The proper force detection parameter Mz0 is calculated as explainedbelow.

The CPU 31 multiplies a difference between the force detection parameterMz1 and the force detection parameter Mz2 by sinθ and subtracts a valueobtained by the multiplication from the force detection parameter Mz1.That is, the CPU 31 calculates Mz0=Mz1−(Mz1−Mz2)×sinθ. Consequently, itis possible to accurately calculate the proper force detection parameterMz0 according to the setting angle θ. Accordingly it is possible toaccurately perform force detection in the z-axis direction irrespectiveof the setting angle θ.

The proper force detection parameter Mx0, the proper force detectionparameter My0, and the proper force detection parameter Mz0 obtained inthis way are stored in the storing section 32.

The proper values of the position feedforward gain Kppff, the positioncontrol gain Kpp, and the speed control gain Kvp, the proper forcedetection parameter Mx0, the proper force detection parameter My0, andthe proper force detection parameter Mz0 are calculated through thesteps explained above.

Step S102 and step S103 are not limited to be performed in the orderexplained above and may be simultaneously performed or may be performedin the opposite order. Step S103 may be omitted.

Although not illustrated, the instruction device 3 transmits informationconcerning the proper values of the position feedforward gain Kppff, theposition control gain Kpp, and the speed control gain Kvp calculated instep S102 to the robot control device 4. The robot control device 4performs the control of the operation of the robot arm 10 using thereceived proper values of the position feedforward gain Kppff, theposition control gain Kpp, and the speed control gain Kvp. Consequently,position accuracy and responsiveness of the control of the operation ofthe robot arm 10 are improved. The robot 1 can exert excellentperformance. As a result, the robot 1 can quickly and accurately performwork.

Although not illustrated, the instruction device transmits informationconcerning the proper force detection parameter Mx0, the proper forcedetection parameter My0, and the proper force detection parameter Mz0calculated in step S103 to the robot control device 4. The robot controldevice 4 performs force detection using the proper force detectionparameter Mx0, the proper force detection parameter My0, and the properforce detection parameter Mz0 received from the instruction device 3.Consequently, force applied to the robot arm 10 can be accuratelydetected. Work can be safely and accurately performed.

A synergistic effect of these effects can be obtained by performing bothof step S102 and step S103. That is, with a synergistic effect of thecalculation of the proper values of the position feedforward gain Kppff,the position control gain Kpp, and the speed control gain Kvp and thecalculation of the proper force detection parameter Mx0, the properforce detection parameter My0, and the proper force detection parameterMz0, the position accuracy and the responsiveness of the control of theoperation of the robot arm 10 are further improved. The robot 1 canexert performance more excellent in safety.

In the calculation in step S102 and step S103, the informationconcerning the setting angle θ input in step S101 is shared. That is,step S102 and step S103 are executed based on the information concerningthe setting angle θ input once in step S101. Consequently, it ispossible to calculate a proper parameter with a simpler method.

In this embodiment, in step S101, the numerical value of the settingangle is directly input as an example of the information concerning thesetting angle. However, the present disclosure is not limited to this.The numerical value of the setting angle may be selected out of aplurality of choices. The plurality of choices may be numerical valuessuch as “10°, “20° ”, and “30°”, may be characters such as “inclinationangle is small”, “inclination angle is medium”, and “inclination angleis large”, or may be signs indicating the magnitude of the inclinationangle.

In the explanation in this embodiment, the first setting angle shown inFIG. 6 is 0° and the second setting angle shown in FIG. 7 is 90°.However, the present disclosure is not limited to this. The firstsetting angle and the second setting angle may be respectively anyangles if the first setting angle and the second setting angle aredifferent from each other.

As explained above, a control method according to the first embodimentof the present disclosure includes an input step for inputting theinformation concerning the setting angle for the robot arm 10 of therobot 1, the robot 1 including the robot arm 10 including the arms 11 to16 and the driving sections 5A to 5F including the motors 510, which areservomotors that drive the arms 11 to 16, and a calculating step forcalculating, based on the first servo parameter corresponding to thesetting at the first setting angle for the robot arm 10 and the secondservo parameter corresponding to the setting at the second setting angledifferent from the first setting angle for the robot arm 10, the properservo parameter, which is the third servo parameter corresponding to thesetting angle for the robot arm 10. Consequently, it is possible tocalculate the proper servo parameter according to the setting angle forthe robot arm 10. Accordingly, the position accuracy and theresponsiveness of the control of the operation of the robot arm 10 areimproved irrespective of the setting angle. The robot 1 can exertexcellent performance. As a result, the robot 1 can quickly andaccurately perform work.

The calculation device 9 according to the first embodiment of thepresent disclosure includes the input section 34 that inputs theinformation concerning the setting angle for the robot arm 10 of therobot 1, the robot 1 including the robot arm 10 including the arms 11 to16 and the driving sections 5A to 5F including the motors 510, which arethe servomotors that drive the arms 11 to 16, and the CPU 31 functioningas a calculating section that calculates, based on the first servoparameter corresponding to the setting at the first setting angle forthe robot arm and the second servo parameter corresponding to thesetting at the second setting angle different from the first settingangle for the robot arm 10, the proper servo parameter, which is thethird servo parameter corresponding to the setting angle for the robotarm 10. Consequently, it is possible to calculate the proper servoparameter according to the setting angle for the robot arm 10.Accordingly, the position accuracy and the responsiveness of the controlof the operation of the robot arm 10 are improved irrespective of thesetting angle. The robot 1 can exert excellent performance. As a result,the robot 1 can quickly and accurately perform work.

Second Embodiment

FIG. 10 is a diagram showing a display screen of an input device of acalculation device according to a second embodiment of the presentdisclosure. FIG. 11 is a flowchart for explaining a control operationperformed by the calculation device according to the second embodimentof the present disclosure.

The second embodiment is explained below. In the following explanation,differences from the first embodiment are mainly explained. Explanationabout similarities to the first embodiment is omitted.

As shown in FIG. 10, a proper servo parameter calculation button 63 anda proper force detection parameter calculation button 64 are displayedon the display screen 60 of the input device 6 according to thisembodiment in addition to the setting-angle input section 61 and thedetermination button 62.

The proper servo parameter calculation button 63 is a button forselecting whether to calculate a proper servo parameter. The properforce detection parameter calculation button 64 is a button forselecting whether to calculate a proper force detection parameter.

An operator selects and presses at least one of the proper servoparameter calculation button 63 and the proper force detection parametercalculation button 64, inputs a setting angle to the setting-angle inputsection 61, and thereafter presses the determination button 62. That is,the operator is capable of selecting which parameter of the proper servoparameter and the proper force detection parameter is calculated.Consequently, the operator can omit calculation of an unnecessaryparameter according to the configuration of the robot 1 and workcontent. Accordingly, the control operation of the instruction device 3can be simplified.

The control operation of the instruction device 3 is explained withreference to a flowchart of FIG. 11.

First, the operator presses at least one of the proper servo parametercalculation button 63 and the proper force detection parametercalculation button 64 and inputs a setting angle for the robot arm 10 tothe setting-angle input section 61 while viewing the display screen 60of the input device 6 shown in FIG. 10.

When the operator presses the determination button 62, informationconcerning which parameter is calculated and information concerning thesetting angle are input to the instruction device 3 via the inputsection 34 shown in FIG. 2. In step S201, the input section 34 inputsthe information concerning the setting angle to, that is, takes theinformation concerning the setting angle into the storing section 32.

Subsequently, in step S202, at least one of the proper servo parameterand the proper force detection parameter is calculated based on an inputresult in step S201.

These calculation methods are the same as the calculation methods in thefirst embodiment. Therefore, explanation about the calculation methodsis omitted.

In this way, the calculation device 9 includes the input section 34 thatinputs the information concerning the setting angle for the robot arm 10of the robot 1, the robot 1 including the robot arm 10 including thearms 11 to 16 and the driving sections 5A to 5F including the motors510, which are the servomotors that drive the arms 11 to 16, and the CPU31 functioning as a calculating section that calculates, according to aninput result of the input section 34, at least one of a servo parameterused in driving the motors 510 and a force detection parameter used forcorrection of a detection value of the force detection section 5.Consequently, it is possible to selectively calculate at least one of aservo parameter and a force detection parameter according to the settingangle for the robot arm 10. Accordingly, the robot 1 can quickly andaccurately perform work irrespective of the setting angle.

The control methods and the calculation devices according to theembodiments of the present disclosure are explained. However, thepresent disclosure is not limited to this. The components of thesections of the calculation devices can be replaced with any structureshaving the same functions. Any other structures may be added. The stepsof the control methods can be replaced with any steps that exert thesame effects. Any other steps may be added.

In the embodiments, the input device 6 inputs the setting angle θ to theinput section 34. However, the present disclosure is not limited tothis. For example, an angle detecting section may detect the settingangle θ. That is, the robot 1 may include the angle detecting sectionand may be configured to calculate the proper servo parameter based on adetection result of the angle detecting section.

In the embodiments, the number of rotation axes of the robot arm is six.However, the present disclosure is not limited to this. The number ofrotation axes of the robot arm may be, for example, one to five or sevenor more. That is, in the embodiments, the number of arms is six.However, the present disclosure is not limited to this. The number ofarms may be one to five or may be seven or more.

What is claimed is:
 1. A control method comprising: an input step forinputting information concerning a setting angle for a robot arm of arobot, the robot including the robot arm including an arm and a drivingsection including a servomotor that drives the arm; and a calculatingstep for calculating, based on a first servo parameter corresponding tosetting at a first setting angle for the robot arm and a second servoparameter corresponding to setting at a second setting angle differentfrom the first setting angle for the robot arm, a third servo parametercorresponding to the setting angle for the robot arm.
 2. The controlmethod according to claim 1, wherein, when the first servo parameter isrepresented as K1, the second servo parameter is represented as K2, thethird servo parameter is represented as K0, and the setting angle forthe robot arm is represented as θ, in the calculating step,K0=K1−(K1−K2)×sinθ is calculated.
 3. The control method according toclaim 1, wherein each of the first to third servo parameters includes aposition feedforward gain, a position control gain, and a speed controlgain, and in the calculating step, any one of the position feedforwardgain, the position control gain, and the speed control gain iscalculated.
 4. The control method according to claim 1, wherein at thefirst setting angle, an angle formed by a setting surface on which therobot arm is set and a horizontal plane is 0°, and at the second settingangle, the angle formed by the setting surface and the horizontal planeis 90°.
 5. A calculation device comprising: an input section configuredto input information concerning a setting angle for a robot arm of arobot, the robot including the robot arm including an arm and a drivingsection including a servomotor that drives the arm; and a calculatingsection configured to calculate, based on a first servo parametercorresponding to setting at a first setting angle for the robot arm anda second servo parameter corresponding to setting at a second settingangle different from the first setting angle for the robot arm, a thirdservo parameter corresponding to the setting angle for the robot arm. 6.A calculation device comprising: an input section configured to inputinformation concerning a setting angle for a robot arm of a robot, therobot including the robot arm including an arm, a driving sectionincluding a servomotor that drives the arm, and a force detectingsection configured to detect force applied to the robot arm; and acalculating section configured to calculate, according to an inputresult of the input section, at least one of a servo parameter used indriving the servomotor and a force detection parameter used forcorrection of a detection value of the force detecting section.